﻿using log4net;
using System;
using System.Reflection;

namespace Shininglore.XAuth
{
    class SetupManager
    {
        // Create a logger for use in this class
        private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
        private static SetupManager instance = new SetupManager();

        public static SetupManager GetInstance()
        {
            return instance;
        }

        public void Run()
        {
            AppDomain.CurrentDomain.UnhandledException += Program.CurrentDomain_UnhandledException;
            log.Info("Register AppDomain.UnhandledException to handle unexcepted error properly.");

            // TODO:
        }

       
    }
}